home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr35 / qprn102.zip / UNPACK.BAT < prev    next >
DOS Batch File  |  1993-04-25  |  1KB  |  33 lines

  1. @echo off
  2. REM This batch file is for using QWKPRUNE with most mail readers.
  3. REM See READER.DOC for details about using it with your reader.
  4. REM
  5. REM Copy it to the directory where the reader is located.
  6. REM
  7. REM Wherever you see [work_dir], replace it with the
  8. REM work directory defined in the reader's configuration.
  9. REM Some readers change to their work directory when unpacking
  10. REM a QWK packet.  In these cases, you can remove [work_dir].
  11. REM
  12. REM The lines "if exist [work_dir]\pruned.flg goto endit" and
  13. REM "echo PRUNED > pruned.flg" prevent QWKPRUNE from being called
  14. REM again if a reply packet is unpacked.
  15. REM
  16. REM (4DOS users may replace "if exist [work_dir]\pruned.flg goto endit"
  17. REM with "if %@index[%@upper[%1&],.REP] NE -1 quit", and delete
  18. REM "echo PRUNED > pruned.flg".)
  19. REM
  20. REM In the reader's configuration, insert "UNPACK" (without the quotes)
  21. REM before the name of each of your unpackers.    If you need to do anything
  22. REM else to run this file, it will be noted in READER.DOC.  If your reader
  23. REM isn't listed in READER.DOC, and "UNPACK" doesn't work, include the
  24. REM .BAT extension.  Some readers may require that you give a path to the
  25. REM batch file.  If neither "UNPACK" nor "UNPACK.BAT" works, use
  26. REM "COMMAND /C UNPACK" or "PARM UNPACK" (again w/o quotes) instead.
  27. REM
  28. %1 %2 %3 %4 %5 %6 %7 %8 %9
  29. if exist [work_dir]\pruned.flg goto endit
  30. if exist [work_dir]\messages.dat qwkprune /m[work_dir]
  31. echo PRUNED > [work_dir]\pruned.flg
  32. :endit
  33.